import axios from '../axios'

export default{
    //获取所有活期数据
    getAllCurrentFund(params){
        return axios({
            url:'/currentFundInfo/selectAll',
            method:'GET',
            params
        })
    },
    //删除活期数据
    deleteCurrentFund(data){
        return axios({
            url:'/currentFundInfo/delete',
            method:'POST',
            data
        })
    },
    //获取所有可添加的活期数据
    getAllCurrent(params){
        return axios({
            url:'/currentFundAll/selectAll',
            method:'GET',
            params
        })
    },
    //新增活期
    addCurrentFund(data){
        return axios({
            url:"/currentFundInfo/insertOne",
            method:'POST',
            data
        })
    }
}